package com.prs.crm.domain.cqunicom;

import java.util.Date;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2011-3-11 下午04:51:24 简单说明 商家订单
 */
@Entity
@Table(name = "cq_BusinessOrder")
public class BusinessOrder extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * 处理人员
	 */
	@ManyToOne
	private Person personbus;

	/**
	 * 交易状态
	 */
	private String transationSatet;

	/**
	 * 成交价格
	 */
	private Double dealPrice;
	/**
	 * 外派人员
	 */
	private String outPerson;
	/**
	 * 外派时间
	 */
	private Date outDate;

	/**
	 * 客户意见
	 */
	@Lob
	private String cusDoxa;

	/**
	 * 备注
	 */
	@Lob
	private String busRemark;
	/**
	 * 订单信息
	 */
	@OneToMany(fetch = FetchType.LAZY, mappedBy = "businessOrder")
	private Set<PoplarOrder> poplarOrder;
	/**
	 * 未成交原因
	 * 
	 * @return
	 */
	@Lob
	private String dealCause;

	/**
	 * 预约时间
	 * 
	 * @return
	 */
	private Date rserveTime;

	public String getDealCause() {
		return dealCause;
	}

	public void setDealCause(String dealCause) {
		this.dealCause = dealCause;
	}

	public Date getRserveTime() {
		return rserveTime;
	}

	public void setRserveTime(Date rserveTime) {
		this.rserveTime = rserveTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Person getPersonbus() {
		return personbus;
	}

	public void setPersonbus(Person personbus) {
		this.personbus = personbus;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getTransationSatet() {
		return transationSatet;
	}

	public void setTransationSatet(String transationSatet) {
		this.transationSatet = transationSatet;
	}

	public Double getDealPrice() {
		return dealPrice;
	}

	public void setDealPrice(Double dealPrice) {
		this.dealPrice = dealPrice;
	}

	public String getOutPerson() {
		return outPerson;
	}

	public void setOutPerson(String outPerson) {
		this.outPerson = outPerson;
	}

	public Date getOutDate() {
		return outDate;
	}

	public void setOutDate(Date outDate) {
		this.outDate = outDate;
	}

	public String getCusDoxa() {
		return cusDoxa;
	}

	public void setCusDoxa(String cusDoxa) {
		this.cusDoxa = cusDoxa;
	}

	public Set<PoplarOrder> getPoplarOrder() {
		return poplarOrder;
	}

	public void setPoplarOrder(Set<PoplarOrder> poplarOrder) {
		this.poplarOrder = poplarOrder;
	}

	public String getBusRemark() {
		return busRemark;
	}

	public void setBusRemark(String busRemark) {
		this.busRemark = busRemark;
	}

}
